When using a variable to call an object from a JSON file it doesn't call it at all